package qt.dao;

import org.apache.ibatis.annotations.Param;
import qt.domain.Role;

import java.util.List;

/**
 * Created by yanlin on 2017/11/25.
 */
public interface RoleDao {

    public List<Role> getAllRole();

    public Role getRole(@Param("rolecd") String rolecd);

    public int getRoleCount();

    public List<Role> getPageRole(int start, int limit);

    public int addRole(Role role);

    public int upptRole(Role role);

    public int deleRole(@Param("rolecd") String rolecd);

    public String getRoleName(String rolecd);
}
